window.onload = function () {
    var nav_content = document.getElementsByClassName("nav_content")[0];
    var leftp1 = document.getElementsByClassName("nav_right-left_p1")[0];
    var rightp2 = document.getElementsByClassName("nav_right-right_p2")[0];


    // 添加点击事件
    //左部分
    leftp1.onclick = function () {
        location.href = "admission file.html";
    };
    //右部分
    rightp2.onclick = function () {
        location.href = "intern.html";
    };
    //日志系统
    var journal = document.getElementsByClassName("journal")[0];
    journal.onclick = function () {
        location.href = "./diary.html";
    }
    //审核系统
    var vet = document.getElementsByClassName("vet")[0];
    vet.onclick = function () {
        location.href = "./audit.html";
    }
    //用户管理
    var user = document.getElementsByClassName("user")[0];
    user.addEventListener('click', function () {
        location.href = "./UserMage.html";
    });
    //班级管理
    var classs = document.getElementsByClassName("classs");
    classs[0].onclick = function () {
        location.href = "./ClassManagement.html";
    }
    //日常
    var routine = document.getElementsByClassName("routine")[0];
    routine.onclick = function () {
        location.href = "./daily.html";
    }
    //学生档案
    var archives = document.getElementsByClassName("archives")[0];
    archives.onclick = function () {
        location.href = "./student file.html";
    }
    //项目管理
    var project = document.getElementsByClassName("project")[0];
    project.onclick = function () {
        location.href = "./projectmanagement.html";
    }
    //出差记录
    var travel = document.querySelector(".travel");
    travel.addEventListener('click', function () {
        location.href = "./business.html";
    });
    //请假记录
    var excused = document.querySelector(".excused");
    excused.addEventListener('click', function () {
        location.href = "./vacate.html";
    });
    //考勤记录
    var presence = document.querySelector(".presence");
    presence.addEventListener('click', function () {
        location.href = "./clock.html";
    });
};
